package com.itjin.health.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 时间段实体类
 */
@Data
@TableName("timeslots")
public class TimeSlot implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 时间段ID
   */
  @TableId(value = "slotid", type = IdType.AUTO)
  private Integer slotId;

  /**
   * 星期几
   */
  @TableField("DayOfWeek")
  private String dayOfWeek;

  /**
   * 开始时间
   */
  @TableField("StartTime")
  private LocalTime startTime;

  /**
   * 结束时间
   */
  @TableField("EndTime")
  private LocalTime endTime;

  /**
   * 创建时间
   */
  @TableField(value = "CreatedAt", fill = FieldFill.INSERT)
  private LocalDateTime createdAt;

  /**
   * 更新时间
   */
  @TableField(value = "UpdatedAt", fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updatedAt;
}